import numpy as np
import pandas as pd
# data = [1,2,3,4,5,6]
# df = pd.DataFrame(data)
# print(df)

# data = [['tom',18],['jerry',19],['jack',22],['rose',22]]
# df = pd.DataFrame(data)
# print(df)

# data = {'name':['alex','bob','lena'],
#         'age':[18,19,20]}
# df = pd.DataFrame(data)
# print(df)

data = {'name':pd.Series(['alex','bob','lena']),
        'age':pd.Series([18,19],index=[1,2])}
df = pd.DataFrame(data)
print(df)